//
//  UIButton+AllState.h
//  HealthManager_Customer
//
//  Created by lzh on 2017/12/27.
//  Copyright © 2017年 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kDefaultAlpha 0.6f

@interface UIButton (AllState)

- (void)changeTitle:(NSString*)title;

- (void)changeTitleColor:(UIColor*)color;

- (void)changeBackgroundImage:(UIImage*)image;

- (void)changeImage:(UIImage*)image;

/** 根据视觉规范，设置按钮点击之后图片的透明度*/
- (void)changeBackgroundImage:(UIImage *)image selectAlpha:(CGFloat)alpha;

/** 根据视觉规范，设置按钮点击之后颜色的透明度*/
- (void)changeBackgroundColor:(UIColor *)color selectAlpha:(CGFloat)alpha;

@end
